package com.atmilan.quartz.model.entity.sync;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * x
 *
 * @author muyu.myw
 * @date 2020/10/9 19:24
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SyncOrderProduct extends Model<SyncOrderProduct> {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @JsonProperty(value = "id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String outerOrderNo;
    private String productId;
    private String suk;
    private Integer qty;
    private BigDecimal price;
    private Integer supplySource;
    private Integer status;
    private Date createTime;
    private Date editTime;
    /**
     * 分单逻辑,多件商品的时候需要从多个sku凑出足够库存
     */
//    private String skuStock;
}
